<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Travel Dream - Home</title>
	<link href="style.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<div id="maincontainer">
<h:form>
<p:commandLink style="float: right;"  action="#{logoutBean.logout}" value="Logout" />
</h:form>
  <div id="menu">
    <div>
    	<h:form>
    	<ul>
    		<li><a href="home.xhtml">HOME</a></li>
    		<li>
				<p:commandLink id="tutti_i_viaggi" action="#{PackageMgr.goToAllTravels()}" value="TUTTI I VIAGGI" />   
			</li>
    		<li>
				<p:commandLink id="profilo" action="#{UserMgr.getUserAndAddress()}" value="IL MIO PROFILO" />   
			</li>
    	</ul>
    	</h:form>
    </div>
  </div>
</div>
<p:dataGrid var="flight" value="#{PersonalizeMgr.selectedFlightDTO}" columns="1" rows="4"  paginator="true">
   	<p:panel header="Voli:">
   		<h:panelGrid columns="2">
   			<h:outputLabel for="departureCity" value="Città di partenza:" />
          	<h:outputText value="#{flight.departureCity}" />
          	
          	<h:outputLabel for="departureAirport" value="Aeroporto di partenza:" />
          	<h:outputText value="#{flight.departureAirport}" />
          	
          	<h:outputLabel for="arrivalCity" value="Città di arrivo:" />
         	<h:outputText value="#{flight.arrivalCity}" />
         	
         	<h:outputLabel for="arrivalAirport" value="Aeroporto di arrivo:" />
         	<h:outputText value="#{flight.arrivalAirport}" />
         	
         	<h:outputLabel for="departureDate" value="Data di partenza:" />
        	<h:outputText value="#{flight.departureDate}" />
        	
        	<h:outputLabel for="price" value="Prezzo:" />
        	<h:outputText value="#{flight.price}" />      
        	       		
        	<h:outputLabel for="seat" value="Posto:" />          		
        	<h:outputText value="#{flight.seat}" />
   		</h:panelGrid>
   	</p:panel>
   </p:dataGrid>
   <p:dataGrid var="r" value="#{PersonalizeMgr.currentRoomList}" columns="1" rows="12" paginator="true">
           <p:panel header="Camere:">
              <h:panelGrid columns="2">
              	
              		<h:outputLabel for="roomNumber" value="Numero di camera:" />
                  	<h:outputText value="#{r.roomNumber}" />
                  	
                  	<h:outputLabel for="beds" value="Numero di letti" />
                  	<h:outputText value="#{r.beds}" />
                  	
               </h:panelGrid>
           </p:panel>
  </p:dataGrid>
  <p:dataGrid var="e" value="#{PersonalizeMgr.currentPackage.excursions}" columns="1" rows="12" paginator="true">
           <p:panel header="Escursioni:">
              <h:panelGrid columns="2">
              	
              		<h:outputLabel for="name" value="Nome:" />
                  	<h:outputText value="#{e.name}" />
                  	
                  	<h:outputLabel for="description" value="Descrizione" />
                  	<h:outputText value="#{e.description}" />
                  	
                  	<h:outputLabel for="description" value="Descrizione" />
                  	<h:outputText value="#{e.price}" />
                  	
               </h:panelGrid>
           </p:panel>
  </p:dataGrid>
</h:body>
</html>
